<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button type="button">ccc</button>
    <ul id="list">

    </ul>

    <script>
        var btn = document.querySelector('button')
        var list = document.querySelector('#list')

        var arr=[{name:'刘德华',age:62,sex:'男'},{name:'张学友',age:52,sex:'男'},{name:'黎明',age:66,sex:'男'},{name:'郭富城',age:64,sex:'男'}]

        for(var i = 0;i<arr.length;i++){
            list.innerHTML+="<li><div>"+arr[i].name+"的基本信息"+"</div><div><p>"+"姓名:"+arr[i].name+"</p><p>"+'年龄:'+arr[i].age+"</p><p>"+"性别:"+arr[i].sex+"</p></div></li>"
        }
    </script>
    

</body>
</html>